<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
</head>

<body>
    <h3>检查素数</h3>
    <hr>
    <form method="POST">
        {{ form.csrf_token }}
        {{ form.number.label }} {{ form.number}} {{ form.submit }}
        <br>
        {% for msg in form.number.errors %}
        <small style="color:  red;">{{ msg }}</small>
        {% endfor %}
    </form>
    <hr>
    {% if result %}
    {{ result }}
    {% endif %}
</body>

</html>